package com.zdtech.dao.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zdtech.dao.BaseDAO;
import com.zdtech.dao.TUserDAO;
import com.zdtech.entity.TUser;
@Repository("tUserDAO")
public class TUserDAOImpl implements TUserDAO {
	@Resource
	private BaseDAO<TUser> baseDAO;
	
	public Serializable save(TUser o) {
		return baseDAO.save(o);
	}

	public void delete(TUser o) {
		baseDAO.delete(o);
	}

	public void update(TUser o) {
		baseDAO.update(o);
	}

	public void saveOrUpdate(TUser o) {
		baseDAO.saveOrUpdate(o);
	}

	public List<TUser> find(String hql) {
		return baseDAO.find(hql);
	}

	public List<TUser> find(String hql, Object[] param) {
		return baseDAO.find(hql, param);
	}

	public List<TUser> find(String hql, List<Object> param) {
		return baseDAO.find(hql, param);
	}

	public List<TUser> find(String hql, Object[] param, Integer page, Integer rows) {
		return baseDAO.find(hql, param, page, rows);
	}

	public List<TUser> find(String hql, List<Object> param, Integer page, Integer rows) {
		return baseDAO.find(hql, param, page, rows);
	}

	public TUser get(Class<TUser> c, Serializable id) {
		return baseDAO.get(c, id);
	}

	public TUser get(String hql, Object[] param) {
		return baseDAO.get(hql, param);
	}

	public TUser get(String hql, List<Object> param) {
		return baseDAO.get(hql, param);
	}

	public Long count(String hql) {
		return baseDAO.count(hql);
	}

	public Long count(String hql, Object[] param) {
		return baseDAO.count(hql, param);
	}

	public Long count(String hql, List<Object> param) {
		return baseDAO.count(hql, param);
	}

	public Integer executeHql(String hql) {
		return baseDAO.executeHql(hql);
	}

	public Integer executeHql(String hql, Object[] param) {
		return baseDAO.executeHql(hql, param);
	}

	public Integer executeHql(String hql, List<Object> param) {
		return baseDAO.executeHql(hql, param);
	}

	public Query findBySql(String sql) {
		return baseDAO.findBySql(sql);
	}

	public Query findBySql(String sql, List<Object> param) {
		return baseDAO.findBySql(sql, param);
	}

	public List<TUser> page(String hql, Integer offset, Integer size) {
		return baseDAO.page(hql, offset, size);
	}

}
